package com.realife.eson.common.util.jwt;

import java.io.IOException;

/**
 * @version V1.0
 * @author: guangcheng
 * @date: 2022/4/14 15:58
 * @description:
 */
public class TokenConfiguration {
    private static final String REDIS_USER_PRI_KEY = "PAAS:AUTH:JWT:PRI";
    private static final String REDIS_USER_PUB_KEY = "PAAS:AUTH:JWT:PUB";
    private static final String USER_PUB_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCkXKRZ3xHOi33alXGYqe1OsOqBOfUXuq8/3kScRtavyrhPotWD4SDtjJG4oTptmz2CXINUKwnMOOhEqYYc4Sl7xRx/+4oh1XQO81PLh0WxmGj+Gkz1yjP4kg8CVnuAVOkjk5LrVMrju9wsh2ULZ2rtE1wlwgVaEM4H5jja95pGvQIDAQAB";
    private static final String USER_PRI_KEY = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKRcpFnfEc6LfdqVcZip7U6w6oE59Re6rz/eRJxG1q/KuE+i1YPhIO2MkbihOm2bPYJcg1QrCcw46ESphhzhKXvFHH/7iiHVdA7zU8uHRbGYaP4aTPXKM/iSDwJWe4BU6SOTkutUyuO73CyHZQtnau0TXCXCBVoQzgfmONr3mka9AgMBAAECgYEAoVzGiekDnWi7TV7MoJmrfkcYY3hYFEzWgvifGWI+oWV/n8d4obnjTvRjmATJzRPMxnA3CuoZ+2KfPdHE9hNkWikLKAHDK8TjTxusk6YSKkzkzLp7o22GPug8N7wzmVDFizgQG4/UqxxpCYhSxotS0FF3mcBxVypqSmzOKLOieQECQQDThkWTF2nmw3EPv9rigRYtoaFnpTvfkEucs2T4XOWxKlv5/224b0ajxLVGq8CXJRpaZqi5vCBSvel/rwpjd8b9AkEAxuu/kBeZDXxKo/5yfkECwhzvh8g6usWOr5CzMpohvwxezMQd+PvBsd0e9TR26QP2pmLfan6RITqQsvwUdTLqwQJAdwrDDyQHKqLld1qfAghqBeZH4v+/8XLQyvC/K3OEpS9Ush6Jjlm5pKMo7gvtCGMOMMBDxrvUaRyOU5icPRyEtQJBALr68LceJ2TwtyyNyct5ioEyN8mXYfUcLHJE/tyK2zu9AgNSOaZH55sr8aSlqzx+2EMwXze4Pu1QIqHLp+M+eEECQCZV94GEGWIegs7QdxwFM1HVDakk1hBytyPaa+6x7kCyGxjvZ/5tq4xqN9KZuv7dfnw4rtNmgOYeYj8noTczvNM=";
    byte[] userPubKey;
    byte[] userPriKey;

    public TokenConfiguration() {
        try {
            this.setUserPriKey(RsaKeyHelper.toBytes("MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKRcpFnfEc6LfdqVcZip7U6w6oE59Re6rz/eRJxG1q/KuE+i1YPhIO2MkbihOm2bPYJcg1QrCcw46ESphhzhKXvFHH/7iiHVdA7zU8uHRbGYaP4aTPXKM/iSDwJWe4BU6SOTkutUyuO73CyHZQtnau0TXCXCBVoQzgfmONr3mka9AgMBAAECgYEAoVzGiekDnWi7TV7MoJmrfkcYY3hYFEzWgvifGWI+oWV/n8d4obnjTvRjmATJzRPMxnA3CuoZ+2KfPdHE9hNkWikLKAHDK8TjTxusk6YSKkzkzLp7o22GPug8N7wzmVDFizgQG4/UqxxpCYhSxotS0FF3mcBxVypqSmzOKLOieQECQQDThkWTF2nmw3EPv9rigRYtoaFnpTvfkEucs2T4XOWxKlv5/224b0ajxLVGq8CXJRpaZqi5vCBSvel/rwpjd8b9AkEAxuu/kBeZDXxKo/5yfkECwhzvh8g6usWOr5CzMpohvwxezMQd+PvBsd0e9TR26QP2pmLfan6RITqQsvwUdTLqwQJAdwrDDyQHKqLld1qfAghqBeZH4v+/8XLQyvC/K3OEpS9Ush6Jjlm5pKMo7gvtCGMOMMBDxrvUaRyOU5icPRyEtQJBALr68LceJ2TwtyyNyct5ioEyN8mXYfUcLHJE/tyK2zu9AgNSOaZH55sr8aSlqzx+2EMwXze4Pu1QIqHLp+M+eEECQCZV94GEGWIegs7QdxwFM1HVDakk1hBytyPaa+6x7kCyGxjvZ/5tq4xqN9KZuv7dfnw4rtNmgOYeYj8noTczvNM="));
            this.setUserPubKey(RsaKeyHelper.toBytes("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCkXKRZ3xHOi33alXGYqe1OsOqBOfUXuq8/3kScRtavyrhPotWD4SDtjJG4oTptmz2CXINUKwnMOOhEqYYc4Sl7xRx/+4oh1XQO81PLh0WxmGj+Gkz1yjP4kg8CVnuAVOkjk5LrVMrju9wsh2ULZ2rtE1wlwgVaEM4H5jja95pGvQIDAQAB"));
        } catch (IOException var2) {
            var2.printStackTrace();
        }

    }

    public byte[] getUserPubKey() {
        return this.userPubKey;
    }

    public void setUserPubKey(byte[] userPubKey) {
        this.userPubKey = userPubKey;
    }

    public byte[] getUserPriKey() {
        return this.userPriKey;
    }

    public void setUserPriKey(byte[] userPriKey) {
        this.userPriKey = userPriKey;
    }
}

